import request from "@/utils/request/axios";

// 获取相机列表：/config/camera/list
export const listGetCamera = ()  => {
  return request.get('/config/camera/list')
}

// 添加相机列表 /config/camera/add POST
export const addCameraList = (data)  => {
  return request.post('/config/camera/add',data)
}

// 设置输出配置 /config/server/set_out_cfg POST
export const setOutCfg = (data)  => {
  return request.post('/config/server/set_out_cfg',data)
}

// 请求预览 /config/other/start_ctrl_stream POST
export const startStream = (data)  => {
  return request.post('/config/other/start_ctrl_stream',data)
}

// 获取输出配置 /config/server/get_out_cfg GET
export const getOutCfg = ()  => {
  return request.get('/config/server/get_out_cfg')
}